﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Orid.Management.Statistics.Tools.Decomposition.Model
{
      class ModelBase
    {
 
        protected static int _durationMax = 1800;
        private List<ModelException> listException = new List<ModelException>();

        public  List<ModelException> GetListException()
        {
            GetException();
            return listException; 
       
        }

        protected virtual    void GetException(){  }
        public    void AddException(string exception,string detail)
        {
            listException.Add(new ModelException(exception,detail));
        }

    }

      class ModelException
    {
        private string exception, detail;

        public ModelException(string exception,string detail)
        {
            this.exception = exception;
            this.detail = detail;
        }
        public string Detail
        {
            get { return detail; }
            set { detail = value; }
        }

        public string Exception
        {
            get { return exception; }
            set { exception = value; }
        }


    }
}
